# dmitry.a.konovalov@gmail.com dmitry.konovalov@jcu.edu.au

.PHONY: all clean  test # ignore file named 'all'?
%.o : %.mod  # dealing with gfortran bug

.SUFFIXES:              # Delete the default suffixes
#.SUFFIXES: .f95 .o .mod .a .exe  # Define our suffix list

SRC_HOME_DIR = C:/src/svn121127/f95/tsv2012
RM_FILES=rm
CF=gfortran
#http://faculty.washington.edu/rjl/uwamath583s11/sphinx/notes/html/gfortran_flags.html
#CFLAGS = -g -pedantic -Wconversion -Wall -Wextra
CFLAGS = -g 
SRC_EXT  = f95


OBJ_DIR   = C:/src/obj

TRGT_EXE := $(OBJ_DIR)/tsv2012_test.exe
SRC_DIR  := $(SRC_HOME_DIR)/test 
include $(SRC_HOME_DIR)/test/tsv2012_test_base.mk

TRGT_LIB  := $(OBJ_DIR)/tsv2012.a
SRC_DIR   := $(SRC_HOME_DIR)/src
include $(SRC_HOME_DIR)/make/Makefile_tsv2012_base.mk 

all: $(TRGT_EXE) $(TRGT_LIB)
	@echo "all: (TRGT_EXE) (TRGT_LIB)"
	@echo "  (TRGT_EXE)=" "$(TRGT_EXE)"
	@echo "  (TRGT_LIB)=" "$(TRGT_LIB)"
	@echo "  ok"


#http://www.chemie.fu-berlin.de/chemnet/use/info/make/make_5.html#SEC42
#To ignore errors in a command line, write a `-' at the beginning of the line's text (after the initial tab). The `-' is discarded before the command is passed to the shell for execution.
clean: 
	-${RM_FILES}  $(OBJ_DIR)/*.o  $(OBJ_DIR)/*.mod  $(TRGT_EXE) $(TRGT_LIB)



